Create a new group for the given index. It will be set as the current group.
the id of the newly created group.
See Implementation
Create a new group for the given index. It will be set as the current group.