A Neural Network Model for a Cognitive Map in the Brain