first implementation KNearest wrapper on KDTree