denser huffman tree encoding