adding WeigthedQuickUnion class (not implemented yet)