string matching RabinKarp and KMP