Added Euclidean algorithm for GCD