Use the huffman algorithm