refactoring cpu to hold one pcb, rather than an array of all pcbs (resident list) and an index of current