Added generate-subgroups-naive to find subgroups.