public bool IsLeaf(HuffmanNode huffmanNode) { return(huffmanNode.Left == null && huffmanNode.Right == null); }