Rescheduling jobs with a LIFO buffer