fixes and added unit-tests in log-det
Merge pull request #1252 from lambday/feature/log_determinant

fixes and added unit-tests in log-det