Added simple implementation of a disjoint set.