Fast hashing functions and replacement of match()