added BFS, DFS and an example