Use custom array iterator to support remove operation