Huffman coding for treemapping