Add a naive implementation of a disjoint set