Bidirectional Retrieval from Associative Memory