pub fn distance(a: &[f32], b: &[f32], metric: DistanceMetric) -> f32
Compute distance between two vectors.