Added a depth first search graph traversal method