go implementation of extended Evklid allgorithm