string matching by Rabin-Karp, hash by rolling hash