construct suffix array with naive alogrithm O(n^2logn)