Added gcd-method