Generation of Huffman trees works.