suffix array sorting is working at least for short strings