Start Depth First Search algorithm
Fixed kruskal algorithm