Knuth-Morris-Pratt (KMP) algorithm for string matching