replace sets with bitarrays