fix typos in do-bfs and do-dfs docs