remove() method for node iterator