Implementing Huffman Encoding for Lossless Compression