Implement Huffman Algorithm to compress