Update rational.cpp

Added check for doubles too small for Rational type (n < MIN_INT)