added a 3rd implementation of the Knuth-Morris-Pratt algorithm (DFA)