implement SuffixArray using normal sort algorithms

I'll using radix sorting later