gcd problem