Modifications to sequential Huffman encoding