updateCourseViewModel

Creates a new ExercisesTreeViewModel with the given exercise groups, which is then set to MainViewModel.exercisesViewModel.