Set nextPid to 0 in init
Implemented get new proccess control block function.