extended euclidean algorithm in cryptography example