Use R-tree instead of k-d-tree for distance comparison.
Use R-tree instead of k-d-tree for distance comparison.