Add stack and queue