MinSplit and path_sum_2