add functionality to NearestNeighbors estimators