In contrast to Algorithm 1, which only selected one segmentation boundary at once, in our new setting there are multiple positions selected at one time.
we need to update our search algorithm to handle this setting.