merge

Merges p1 and p2 into another profile with the minimum velocity of the two at every point.