Modified Huffman coding