Extended Euclidean algorithm example