Redirecting to Extended Euclidean algorithm