complete empirical testing of dfs and bfs