Use Huffman encoding to compress text file