Added log-det method for sparse matrices in CStatistics