Knuth-Morris-Pratt String Searching Algorithm.