Compression: adding a Huffman encoder/decoder