Add debugging code in find_gcd function