Added bfs, dfs tree search algorithm