add BigInteger getDigitLength; performance improvements