gcd
Return the greatest common divisor of a and b, consistently with BigInteger.gcd.
NOTE: A greatest common divisor must be positive, but 2^64 cannot be expressed as a long although it is the GCD of Long.MIN_VALUE and 0 and the GCD of Long.MIN_VALUE and Long.MIN_VALUE. So in these 2 cases, and only them, this method will return Long.MIN_VALUE.