Knuth-Morris-Pratt algorithm

- CPU implementation of KMP algorithm