stack and queue used array