covarianceMatrix computation added