algs4; exercise 1.1.24 - Euclid's algorithm