Merge sort, KMP search