closest point by kdtree