Add hashCode to Rational