A simple implementation of a disjoint set data structure in C#.