unfinished huffman code(heap building portion completed)