depth first search

performing dfs on a graph using adjacency matrix.