Update merge_groups.cpp