protected lane_offset from going out of the array bounds in the case where two vertices are the same and within two elements of the beginning or end of the path vertices array