Rational Numbers - Prolog | SlaveCode