Added new gcd method