Implemented HuffmanNode class