Switched groups to use SgArrayLists instead of vectors for keeping track of their blocks.