Added in cholesky decomposition to invert the Cov matrix.