Create Euclidean algorithm