Overloaded == operator for Node class for easier equality checks.