Kruskals algorithm works smutt