pub fn sum_naive<T>(xs: &[T]) -> Twhere T: Zero + AddAssign + Copy,
Sums all the elements in a given vector.