nanoFLANN implementation for KdTree