pub fn cos(lhs: &[f32], rhs: &[f32]) -> f32
Calculates the cos distance between two vectors.
Note: Must ensure that the length of the two vectors are the same.