[1] finish part of huffman.c