huffman:  quick code works, needs cleanup