removed toString, added new tuple graph
modified bfs/dfs to use a tuple graph
added template for search problem