Calculate a power set of a given set