A Java Disjoint Set data structure implementation