Euclid algorithm (Greatest common divisor)