RabinKarp and Naive