select_valid_masks: Select and return valid dummy outlier masks
Description
Valid dummy outlier masks are integers whose bitwise AND with the given invalid_mask is zero. This function returns the subset of integers of the given vector that does not share any bits with the given invalid_mask.