huffman list code almost finished