added get_determinant() method