Implements Huffman decode