updated javadoc and created class for generating the power set of a given set.