added multi-thread computation of the determinant of the matrix