Trajectories: add get_bounds() method