added comparator for Node pointers