(Un)Compress Files With Dynamic Huffman Tree (C++)