combine merged lines with same orientation