add binary huffman encoding