commiting a java version of QuickFind and QuickUnion