made SearchNode class private because autograder hates it..