Fixed unit test for log-det Sparse Matrices
Added log-det method for sparse matrices