Change the interface of DistanceMeasure
Because it should not depend on Breeze library