Huffman table functions.