Adding Knuth Morris Pratt