suffix array sorting algorithm added