add program to solve problems under preemptive mode
add simulator for non-preemptive mode