covariance-matrix.c (get_sum): New function to compute means during