extracted huffman table creation