A learning trajectory to the understanding of the curve length concept