pub fn rm_gaps<M>(a: Vec<M::Item>) -> Vec<M::Item>where M: MetricSpace, <M as MetricSpace>::Item: PartialEq,
Remove all gaps from the sequence