pub fn dist_1<M>(x: &[M::Item], y: &[M::Item]) -> M::Costwhere M: MetricSpace,
Compute distance using a 2D table O(n^2) time O(n^2) memory