Powerset generator for java