update class huffmanTrree