Update algo_util.py

Adding method gcd to calculate greatest common divisor using Euclid's method.