added determinant to Matrix class