pub fn distance(a: &[f32], b: &[f32], metric: DistanceMetric) -> Result<f32>
Calculate distance between two vectors using the specified metric