[TASK] Add extended euclidean algorithm