a textbook bwt and huffman based compressor