kdtree

for nearest neighbors algorithm, doSplitMatrix() function unfished