Implementation of Karp-Rabin algorithm modified for multiple pattern searching in source string. (with customizable hash macros)