ids.c

ids for smtwtt, check swap ts, swap perturbation, swap dynamic programming.