Metrics for BallTree
Separated OPTICS and extraction functions