remove history files
define factory methods for astar, dfs and bfs