optimize suffix-array