suffix array to find the longest repeated string