suffix array pre-processing seems good to go