axle.ml.DistanceFunctionModule using spire's MetricSpace