Implemented WeightedQuickUnion algorithm