pub fn dot_naive<T>(xs: &[T], ys: &[T]) -> Twhere T: Zero + AddAssign + Mul<Output = T> + Copy,
Calculates the dot (inner) product of given two vectors.