disjoint sets
reverse interleave