https://wikimass.com/python/gcd