Add SearchNode class to keep track of progress