Filled in algorithm section of priority scheduling