An imperative, high-performance disjoint set data structure.