Update surrounded_regions.cpp