Add breadth-first search.
Add depth-first search.