fixed multiplicative hashing function