Basic implementation of a disjoint set forest.