Added logdet method for a Cholesky factorization and its test.