Add working gcd().