Correction of root() in QuickUnion
Weighted Path Compressed Quick Union implemented