Fix number of nearby results bug

The numResults parameter was not being passed to kdtree