removes the top task from stack
s
pop(&s,&top);
pop(&s,&bottom);