changed intToBigInt(x) to the better option BigInteger.valueOf(x)
Merge https://github.com/jamesshapiro/RandomizedAlgorithms