Generate Powerset using bit pattern

Generate the powerset of a set using a bit pattern.