Associative memory of structured knowledge