Pure natural-number extended GCD.
HexArith.extGcd a b returns (g, s, t) with g = Nat.gcd a b and
s * a + t * b = g after coercing the inputs to Int. Use
HexArith.Int.extGcd for the GMP-backed integer API and
HexArith.UInt64.extGcd for machine-word inputs.