remove issue in gcd() with 0 in recursion