MAINT: Use std::lower_bound in count_neighbors
MAINT: Use std::lower_bound in count_neighbors

std::lower_bound has nearly identical semantics to bsearch_first. Thus
we can remove these customized bsearch_xxxx functions.

matthew-brett/scipy,jamestwebber/scipy,arokem/scipy,mdhaber/scipy,scipy/scipy,pbrod/scipy,aarchiba/scipy,pbrod/scipy,person142/scipy,befelix/scipy,perimosocordiae/scipy,dominicelse/scipy,jjhelmus/scipy,anntzer/scipy,anntzer/scipy,jamestwebber/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,Eric89GXL/scipy,person142/scipy,nmayorov/scipy,dominicelse/scipy,josephcslater/scipy,pizzathief/scipy,josephcslater/scipy,jjhelmus/scipy,Eric89GXL/scipy,scipy/scipy,mdhaber/scipy,mdhaber/scipy,Stefan-Endres/scipy,gfyoung/scipy,grlee77/scipy,vigna/scipy,pschella/scipy,matthew-brett/scipy,person142/scipy,pschella/scipy,lhilt/scipy,jakevdp/scipy,aeklant/scipy,andyfaff/scipy,perimosocordiae/scipy,ilayn/scipy,mdhaber/scipy,aeklant/scipy,ilayn/scipy,andyfaff/scipy,jamestwebber/scipy,person142/scipy,Stefan-Endres/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,rgommers/scipy,gertingold/scipy,rgommers/scipy,josephcslater/scipy,arokem/scipy,matthew-brett/scipy,lhilt/scipy,e-q/scipy,mdhaber/scipy,jor-/scipy,lhilt/scipy,dominicelse/scipy,andyfaff/scipy,WarrenWeckesser/scipy,tylerjereddy/scipy,zerothi/scipy,zerothi/scipy,pschella/scipy,tylerjereddy/scipy,zerothi/scipy,rgommers/scipy,pizzathief/scipy,apbard/scipy,jakevdp/scipy,rgommers/scipy,Eric89GXL/scipy,befelix/scipy,grlee77/scipy,anntzer/scipy,e-q/scipy,scipy/scipy,gertingold/scipy,anntzer/scipy,endolith/scipy,e-q/scipy,aeklant/scipy,lhilt/scipy,aeklant/scipy,WarrenWeckesser/scipy,scipy/scipy,apbard/scipy,Stefan-Endres/scipy,jamestwebber/scipy,aarchiba/scipy,scipy/scipy,andyfaff/scipy,perimosocordiae/scipy,pizzathief/scipy,Eric89GXL/scipy,zerothi/scipy,gfyoung/scipy,kalvdans/scipy,dominicelse/scipy,josephcslater/scipy,endolith/scipy,gfyoung/scipy,ilayn/scipy,dominicelse/scipy,tylerjereddy/scipy,ilayn/scipy,jor-/scipy,aarchiba/scipy,mdhaber/scipy,gertingold/scipy,nmayorov/scipy,tylerjereddy/scipy,jakevdp/scipy,pizzathief/scipy,grlee77/scipy,Stefan-Endres/scipy,apbard/scipy,endolith/scipy,zerothi/scipy,zerothi/scipy,e-q/scipy,pbrod/scipy,jor-/scipy,andyfaff/scipy,endolith/scipy,vigna/scipy,nmayorov/scipy,vigna/scipy,Eric89GXL/scipy,pbrod/scipy,WarrenWeckesser/scipy,pizzathief/scipy,jakevdp/scipy,vigna/scipy,jakevdp/scipy,jor-/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,apbard/scipy,scipy/scipy,perimosocordiae/scipy,person142/scipy,perimosocordiae/scipy,gertingold/scipy,jamestwebber/scipy,vigna/scipy,rgommers/scipy,kalvdans/scipy,jor-/scipy,gertingold/scipy,endolith/scipy,endolith/scipy,jjhelmus/scipy,jjhelmus/scipy,josephcslater/scipy,Stefan-Endres/scipy,anntzer/scipy,ilayn/scipy,aarchiba/scipy,gfyoung/scipy,kalvdans/scipy,grlee77/scipy,apbard/scipy,aarchiba/scipy,Eric89GXL/scipy,befelix/scipy,befelix/scipy,andyfaff/scipy,pschella/scipy,e-q/scipy,anntzer/scipy,jjhelmus/scipy,pbrod/scipy,aeklant/scipy,matthew-brett/scipy,arokem/scipy,lhilt/scipy,kalvdans/scipy,arokem/scipy,matthew-brett/scipy,ilayn/scipy,kalvdans/scipy,gfyoung/scipy,grlee77/scipy,nmayorov/scipy,pbrod/scipy,pschella/scipy,arokem/scipy,nmayorov/scipy,befelix/scipy