Added log-det method for Sparse Matrices