krustal made with vector<pair <int, pair<int,int>>>