conjugate-gradient solver added in log-det