Create Knuth-Morris-Pratt