This is a copy of Golang's math/big package with some additional optimizations for the ModExp operation of big.Int.