I have two lines sampled using points in a single 2D array (unlike the provided example which has two separate arrays). I want to divide these curves made up of points into