Added Knuth-Morris-Pratt string-matching algorithm.