Euclids algorith, recursive implementation