compatibility with java.math.BigInteger