pub fn norm2_naive<T>(xs: &[T]) -> Twhere T: Sqrt + Zero + AddAssign + Mul<Output = T> + Copy,
Calculates the Euclidean norm of a given vector.