Fixed reschedule algorithms (switch with teacher is still missing).