Add equals method to Rational