adding initial algorithms for graph traversal using a stack