suffix array to bwt conversion