Added optimization to the function newScoreEquationsOfCovarianceMatrix