Scheduler work

Added context switch function, round robin switch function, and writing
to be prepared for project 4 with fcfs and priority.