Finished implementation of DFS and BFS algorithms. need to test with different graphs