Rational class , simplify() method