Add first implementation of the extended Euclidean algorithm