cholesky working