Changed Groups to be stored in vectors instead of lists in order to possibly increase performance