KMP + SuffixArray