bfs and dfs algorithm with example ppt