Added determinant calculation function in Matrix class