docs: add note about accum in do-bfs and do-dfs