Fix Issue #665
Updating doc and assert for extendedEuclid.
Merge pull request #736 from JacquesOlivierLachaud/FixExtendedEuclid

Tanks