Implementation of Static Huffman codding in C++