This is a C# implementation of QuickFind algorithm for dynamic connectivity.