added Kruskal function + fixed debug output

Now PrintLab handles empty graph