* Union-Find datastructure
*
* This implementation uses weighted sets and path compression which results
* Union-Find datastructure
*
* This implementation uses weighted sets and path compression which results
* @param data The union find data
* @param set1 Representative of set1
* @param set2 Representative of set2
* @param data The union find data
* @param set1 Representative of set1
* @param set2 Representative of set2