If you really want to develop this into a compression/decompression routine then you would have to add a run-length-encoder before and after the Burrows-Wheeler-encoder to achieve more effective compression.
_________________________
There are two types of vessels, submarines and targets.