better huffman contruction