A principle of neural associative memory