QuickUnion implemented