call addGroups with the proper number of arguments, when doing so recursively.