How to find Determinant of a matrix