simple implementation of Euclid's Algorithm