Huffman Coding Algorithm Time Complexity