Added candidate generation algorithm in Groups.