Authenticating with a password with git over http works again. More information here.
Preparing to define `traj_segm` and `expanded_traj` out of the loop on vertices.