made progress on SuffixArray