some suffix array work