Java Implementation of the Union-Find datastructure for efficiently representing and merging set partitions.