Exit codes added to search.
Added basic VisitedSet that wraps HashSet.