Added divide by zero check in division for Rational