Use a BigInteger to prevent the overflow of an int