updating huffman