fixes and added unit-tests in log-det

- change templated dense_dot in SGSparseVector to take SGVector as an argument instead of *vec and len
- added specialized malloc macro for complex64_t SGVectors and SGSparseVectors
- added and fixed few unit-tests