added maxSymbol method in HuffmanTree class