add QuickUnion
first java code