ADD: Implementation of a basic disjoint set data structure