Running Huffman Encoding