What is a Memory? The Hamming and Hopfield Nets