Fixed BFS, added get_path.
Modified dfs.