covar_pop and covar_samp functions