Invariant Object Recognition Using a Distributed Associative Memory