huffmanTree and huffmanCode finished