basic huffman code structure
add further generatetree method