Implemented Huffman decoding.