MISC: Removed duplicate implementation of Euclid's algorithm.