Java implementation of a BigInteger class with crypto functions