Merge pull request #1252 from lambday/feature/log_determinant

fixes and added unit-tests in log-det
changed require msgs in operator* of SGSparseMatrix
iterator modified a bit for log-det