Using math.big.Int for bit manipulation