Simple implementation of suffix array.
Added in-place for quicksort.