Huffman tree implemented