modified Node and SearchNode Class