Added bfs and dfs algorithms