builting a huffman tree successfully.  now must traverse tree to build the code.  Also, I haven't confirmed that it builds correctly.  please test more