/**
* The value 31 was chosen because it is an odd prime. If it were even and the multiplication overflowed,
* information would be lost, as multiplication by 2 is equivalent to shifting. The advantage of using a prime is
/**
* The value 31 was chosen because it is an odd prime. If it were even and the multiplication overflowed,
* information would be lost, as multiplication by 2 is equivalent to shifting. The advantage of using a prime is