Quick Union Algorithm.