Implementation of Huffman Coding