huffman tree Update And Restructure

Signed-off-by: 9drashijin <9drashijin@live.com>