Algorithms And Variations On The Positional Burrows-Wheeler Transform And Their Applications