computeCovarianceMatrix() optimization exploiting matrix symmetry