A Rule Chaining Architecture Using a Correlation Matrix Memory