#18: search adds nodes it's already seen