Fix overflow in global_cc calculation for graphs with max_degree > (2^31)^(1/2)