modifications to rabin karp