new: BFS implementation. 50% done.