euclid max common denominator