Cognitive Maps in Perception and Thought