Update Rational.java

Fixed compareTo