Changing the hash value stored from int to BigInteger