Major refactor to move BigInteger to CryptoNumber.