Converting Rational Numbers to Simplest Form