added original version of suffix array for easier comparison