Make and invert the Burrows Wheeler Transform of a text