Use Euclid's GCD algorithm when simplifying fractions