Algorithm, Get the powerset of given set.