Pearson hashing (trivial 8- or 16-bit string hash)