Attempt at Compression in c++ using huffman