add @inbounds to disjoint sets