Added Depth-first-search algorithm by using recursion