euclidean algorithm in cryptography example