Performance of the KMP string matching algorithm