basic huffman tree functionality.  working on exporting lib