Add Node.contains implementation