new: BFS implementation. 70% done.