Huffman Encoding: Building the tree(2)