Added Euclid's algorithm