Small Hashing tweaks

Removed variable "b", made "a" a prime and calculate its modulo only once (slightly less CPU usage).