Added optimalGroups.py