added universal bfs and dfs algorythm