Implementation of huffman encoding to compress files