Cache-Efficient Graph Algorithms for Near Neighbor Search