bfs is a variant of the UNIX find command that operates breadth-first
rather than depth-first.