Fixed small bug in calculation of log determinant of C