iterative and recursive method for power set problem added