Finished huffman tree building part