Update euclid's extended algorithm .cpp