grid_gcd