Update the calculation of the covariance matrix. dev/ experiment not yet functionnal.