Started the implementation of long segments splittin. Right now, the segment is splitted when it's lenght is greater than 4mm.