Check Disjoint Sets with Bitwise AND