implemented bfs dfs uniform, astar, greedy.