Trajectory added

RT
selection added

The training galleries selection function is added.