stack and queue are bounded