Spatial reasoning in the monkey