結果 : how does the extended euclidean algorithm work