Added gcd method (Euclidian and extended Euclidian algorithm) and tests.