a simple c++ implementation of huffman coding