Rabin-Karp multiple string matching