Added Knuth Morris Pratt pattern search algorithm.