Huffman tree code nearly works. Biggest remaining issue is ensuring the root node has 2 children.
Also might be an off-by-one-bug in the frequencies (will double-check).
Lots of cout statements still in for debugging purposes.
Building the Huffman tree works now. Verified by manually building the same input string by hand on paper.
Commented out all debug cout statements.
Huffman coding now works 100%.
The only error remaining is a seg fault when trying to delete the allocated pointers. This is most likely in the destructor for the HuffmanTree struct.
Fixed the segfault in the HuffmanTree destructor. Don't need to delete the root pointer (since it wasn't initialized with a 'new' statement)