Huffman coder works