updateGroups function

Determine the groups of correlated parameters