Added Node comparison class for priority queue implementation