Added simple priority scheduling. Passes priority-change test.