Implemented Quick Union