REF: factor out inner loop of arr_insert.
REF: factor out inner loop of arr_insert.

This makes subsequent thread-friendly modification easier.

WillieMaddox/numpy,kiwifb/numpy,Anwesh43/numpy,madphysicist/numpy,madphysicist/numpy,WillieMaddox/numpy,kirillzhuravlev/numpy,tdsmith/numpy,MaPePeR/numpy,yiakwy/numpy,stuarteberg/numpy,madphysicist/numpy,chiffa/numpy,mwiebe/numpy,MSeifert04/numpy,charris/numpy,mathdd/numpy,ogrisel/numpy,SiccarPoint/numpy,BMJHayward/numpy,mindw/numpy,sonnyhu/numpy,argriffing/numpy,rgommers/numpy,grlee77/numpy,mindw/numpy,gmcastil/numpy,yiakwy/numpy,CMartelLML/numpy,ssanderson/numpy,shoyer/numpy,endolith/numpy,ahaldane/numpy,bertrand-l/numpy,tdsmith/numpy,astrofrog/numpy,mhvk/numpy,WarrenWeckesser/numpy,MichaelAquilina/numpy,mattip/numpy,jonathanunderwood/numpy,bringingheavendown/numpy,naritta/numpy,ogrisel/numpy,MaPePeR/numpy,BabeNovelty/numpy,joferkington/numpy,bringingheavendown/numpy,pyparallel/numpy,jschueller/numpy,dato-code/numpy,mhvk/numpy,andsor/numpy,hainm/numpy,felipebetancur/numpy,shoyer/numpy,pdebuyl/numpy,embray/numpy,Srisai85/numpy,rmcgibbo/numpy,hainm/numpy,mingwpy/numpy,groutr/numpy,jankoslavic/numpy,dch312/numpy,jankoslavic/numpy,cowlicks/numpy,shoyer/numpy,dwf/numpy,has2k1/numpy,andsor/numpy,CMartelLML/numpy,kirillzhuravlev/numpy,chiffa/numpy,Eric89GXL/numpy,Srisai85/numpy,naritta/numpy,NextThought/pypy-numpy,rudimeier/numpy,sonnyhu/numpy,rherault-insa/numpy,groutr/numpy,rhythmsosad/numpy,Yusa95/numpy,SiccarPoint/numpy,kirillzhuravlev/numpy,anntzer/numpy,mingwpy/numpy,tynn/numpy,mattip/numpy,embray/numpy,mortada/numpy,dato-code/numpy,SiccarPoint/numpy,argriffing/numpy,WarrenWeckesser/numpy,dimasad/numpy,pdebuyl/numpy,musically-ut/numpy,immerrr/numpy,kirillzhuravlev/numpy,jschueller/numpy,seberg/numpy,shoyer/numpy,kiwifb/numpy,astrofrog/numpy,mathdd/numpy,gmcastil/numpy,sigma-random/numpy,nguyentu1602/numpy,abalkin/numpy,gfyoung/numpy,embray/numpy,Dapid/numpy,musically-ut/numpy,cjermain/numpy,mhvk/numpy,MaPePeR/numpy,rgommers/numpy,pelson/numpy,bertrand-l/numpy,mattip/numpy,GaZ3ll3/numpy,brandon-rhodes/numpy,astrofrog/numpy,ahaldane/numpy,grlee77/numpy,ahaldane/numpy,ChristopherHogan/numpy,WillieMaddox/numpy,sinhrks/numpy,ViralLeadership/numpy,anntzer/numpy,numpy/numpy,WarrenWeckesser/numpy,rajathkumarmp/numpy,pelson/numpy,SiccarPoint/numpy,maniteja123/numpy,ogrisel/numpy,mhvk/numpy,SunghanKim/numpy,rmcgibbo/numpy,MichaelAquilina/numpy,mindw/numpy,gmcastil/numpy,ewmoore/numpy,githubmlai/numpy,rudimeier/numpy,ESSS/numpy,Srisai85/numpy,pbrod/numpy,felipebetancur/numpy,skymanaditya1/numpy,rajathkumarmp/numpy,immerrr/numpy,rmcgibbo/numpy,stuarteberg/numpy,dato-code/numpy,bmorris3/numpy,jschueller/numpy,larsmans/numpy,rudimeier/numpy,ahaldane/numpy,hainm/numpy,drasmuss/numpy,AustereCuriosity/numpy,Linkid/numpy,rgommers/numpy,behzadnouri/numpy,sonnyhu/numpy,njase/numpy,pbrod/numpy,ChristopherHogan/numpy,astrofrog/numpy,nguyentu1602/numpy,utke1/numpy,ogrisel/numpy,SunghanKim/numpy,dwf/numpy,sinhrks/numpy,mathdd/numpy,rherault-insa/numpy,SunghanKim/numpy,Linkid/numpy,hainm/numpy,grlee77/numpy,ddasilva/numpy,simongibbons/numpy,GaZ3ll3/numpy,dch312/numpy,MSeifert04/numpy,sigma-random/numpy,GrimDerp/numpy,mhvk/numpy,sigma-random/numpy,GrimDerp/numpy,b-carter/numpy,dwf/numpy,moreati/numpy,mindw/numpy,ewmoore/numpy,andsor/numpy,chiffa/numpy,BabeNovelty/numpy,immerrr/numpy,ahaldane/numpy,tynn/numpy,joferkington/numpy,trankmichael/numpy,embray/numpy,pizzathief/numpy,GrimDerp/numpy,jorisvandenbossche/numpy,ajdawson/numpy,utke1/numpy,ewmoore/numpy,simongibbons/numpy,rhythmsosad/numpy,brandon-rhodes/numpy,maniteja123/numpy,githubmlai/numpy,numpy/numpy,rhythmsosad/numpy,dimasad/numpy,ViralLeadership/numpy,BabeNovelty/numpy,tacaswell/numpy,brandon-rhodes/numpy,ContinuumIO/numpy,behzadnouri/numpy,jakirkham/numpy,jorisvandenbossche/numpy,mingwpy/numpy,jorisvandenbossche/numpy,githubmlai/numpy,madphysicist/numpy,simongibbons/numpy,pizzathief/numpy,larsmans/numpy,cowlicks/numpy,ssanderson/numpy,githubmlai/numpy,nguyentu1602/numpy,cjermain/numpy,ddasilva/numpy,nguyentu1602/numpy,brandon-rhodes/numpy,grlee77/numpy,rudimeier/numpy,madphysicist/numpy,pyparallel/numpy,jakirkham/numpy,jorisvandenbossche/numpy,ESSS/numpy,Dapid/numpy,sigma-random/numpy,ddasilva/numpy,dwillmer/numpy,trankmichael/numpy,joferkington/numpy,pyparallel/numpy,ssanderson/numpy,Dapid/numpy,seberg/numpy,Eric89GXL/numpy,MichaelAquilina/numpy,KaelChen/numpy,joferkington/numpy,Linkid/numpy,jankoslavic/numpy,ekalosak/numpy,felipebetancur/numpy,MSeifert04/numpy,endolith/numpy,BabeNovelty/numpy,empeeu/numpy,chatcannon/numpy,endolith/numpy,skwbc/numpy,njase/numpy,ChanderG/numpy,WarrenWeckesser/numpy,trankmichael/numpy,bringingheavendown/numpy,drasmuss/numpy,mortada/numpy,Yusa95/numpy,ewmoore/numpy,CMartelLML/numpy,bmorris3/numpy,KaelChen/numpy,rherault-insa/numpy,skwbc/numpy,naritta/numpy,grlee77/numpy,pizzathief/numpy,AustereCuriosity/numpy,dch312/numpy,embray/numpy,larsmans/numpy,sonnyhu/numpy,leifdenby/numpy,ajdawson/numpy,CMartelLML/numpy,b-carter/numpy,ekalosak/numpy,pizzathief/numpy,jonathanunderwood/numpy,numpy/numpy,empeeu/numpy,tacaswell/numpy,naritta/numpy,dwf/numpy,rmcgibbo/numpy,KaelChen/numpy,ContinuumIO/numpy,pdebuyl/numpy,NextThought/pypy-numpy,mortada/numpy,gfyoung/numpy,ChanderG/numpy,yiakwy/numpy,MSeifert04/numpy,ekalosak/numpy,pdebuyl/numpy,jorisvandenbossche/numpy,rajathkumarmp/numpy,MichaelAquilina/numpy,ogrisel/numpy,solarjoe/numpy,chatcannon/numpy,Yusa95/numpy,simongibbons/numpy,has2k1/numpy,skwbc/numpy,musically-ut/numpy,BMJHayward/numpy,b-carter/numpy,seberg/numpy,dch312/numpy,pbrod/numpy,Eric89GXL/numpy,dato-code/numpy,ChanderG/numpy,charris/numpy,anntzer/numpy,ESSS/numpy,has2k1/numpy,AustereCuriosity/numpy,rgommers/numpy,has2k1/numpy,charris/numpy,skymanaditya1/numpy,mwiebe/numpy,endolith/numpy,sinhrks/numpy,kiwifb/numpy,mwiebe/numpy,seberg/numpy,behzadnouri/numpy,tdsmith/numpy,numpy/numpy,mortada/numpy,simongibbons/numpy,jankoslavic/numpy,GaZ3ll3/numpy,leifdenby/numpy,tacaswell/numpy,nbeaver/numpy,WarrenWeckesser/numpy,musically-ut/numpy,skymanaditya1/numpy,rhythmsosad/numpy,NextThought/pypy-numpy,GaZ3ll3/numpy,solarjoe/numpy,bmorris3/numpy,argriffing/numpy,skymanaditya1/numpy,pelson/numpy,charris/numpy,tynn/numpy,Yusa95/numpy,cjermain/numpy,ChristopherHogan/numpy,pbrod/numpy,jakirkham/numpy,empeeu/numpy,bmorris3/numpy,jonathanunderwood/numpy,tdsmith/numpy,BMJHayward/numpy,pelson/numpy,gfyoung/numpy,yiakwy/numpy,njase/numpy,MaPePeR/numpy,utke1/numpy,mattip/numpy,cowlicks/numpy,groutr/numpy,mingwpy/numpy,dwillmer/numpy,Anwesh43/numpy,Linkid/numpy,solarjoe/numpy,nbeaver/numpy,felipebetancur/numpy,SunghanKim/numpy,dwf/numpy,maniteja123/numpy,abalkin/numpy,jakirkham/numpy,larsmans/numpy,stuarteberg/numpy,andsor/numpy,dwillmer/numpy,astrofrog/numpy,dimasad/numpy,pelson/numpy,shoyer/numpy,dimasad/numpy,cowlicks/numpy,KaelChen/numpy,ajdawson/numpy,GrimDerp/numpy,jakirkham/numpy,empeeu/numpy,ajdawson/numpy,mathdd/numpy,moreati/numpy,ekalosak/numpy,cjermain/numpy,ewmoore/numpy,dwillmer/numpy,sinhrks/numpy,ViralLeadership/numpy,trankmichael/numpy,pizzathief/numpy,pbrod/numpy,ChristopherHogan/numpy,chatcannon/numpy,moreati/numpy,ChanderG/numpy,Srisai85/numpy,MSeifert04/numpy,leifdenby/numpy,Eric89GXL/numpy,Anwesh43/numpy,ContinuumIO/numpy,stuarteberg/numpy,BMJHayward/numpy,drasmuss/numpy,bertrand-l/numpy,immerrr/numpy,rajathkumarmp/numpy,abalkin/numpy,nbeaver/numpy,Anwesh43/numpy,jschueller/numpy,anntzer/numpy,NextThought/pypy-numpy