Added simple is equal method for nodes.