Minimal Huffman coder/decoder