Modified the node class to explicitly specify the string type of nonterminal/terminal symbols. Fixed a bug in Compare(Node *node) method in Node: it was comparing nonterminal strings when it should have been comparing terminal strings.