Added pre-emption to impatient and polite priority algorithms