Reconstructing huffman decoder