sorting by contour length, only keep top two