Tree and Node classes and functions for Huffman