stack: add iterator access