Improved huffman code