stack and queue problmes