Feature/log determinant

- also added a unit-test