Fast membership algorithm structure
One loop does this four times, with UNROLLED INDEX increased each time.