Data compression using word encoding with Huffman code