Rabin Karp algo for substring