Geometry and Nearest Neighbors