This is c# implementation of Quick Union algorithm of Dynamic connectivity.