c huffman code working, but only one name