Quick Union Algorithm