Using huffman algorithm to compress files