add reverse iterator for arrays