add feature for getNeighbors, getClosest