find best pair of segments