Implemented sys_prior system call and priority scheduling (Part 4A)