Added depth first search to graph class