pub fn dist_2<M>(x: &[M::Item], y: &[M::Item]) -> M::Costwhere M: MetricSpace,
Calculate the distance between two sequences O(n^2) time O(n) memory