stack: array -> linked list
Use list instead of array for stack in P.proc