add greedy huffman code