Add minElement/maxElement/minMaxElement/lowerBound/upperBound algorithms, and fix a bug with name lookup finding multiple associated types of the same name (for which we implicitly require that those types be the same).
Add minElement/maxElement/minMaxElement/lowerBound/upperBound
algorithms, and fix a bug with name lookup finding multiple associated
types of the same name (for which we implicitly require that those
types be the same).


Swift SVN r2428

MukeshKumarS/Swift,tjw/swift,swiftix/swift.old,manavgabhawala/swift,karwa/swift,jtbandes/swift,kentya6/swift,djwbrown/swift,sdulal/swift,jopamer/swift,jmgc/swift,kperryua/swift,karwa/swift,return/swift,manavgabhawala/swift,cbrentharris/swift,sdulal/swift,swiftix/swift,cbrentharris/swift,allevato/swift,JaSpa/swift,calebd/swift,Ivacker/swift,LeoShimonaka/swift,khizkhiz/swift,roambotics/swift,kstaring/swift,zisko/swift,natecook1000/swift,nathawes/swift,jtbandes/swift,adrfer/swift,swiftix/swift.old,dreamsxin/swift,gmilos/swift,tjw/swift,modocache/swift,calebd/swift,adrfer/swift,danielmartin/swift,benlangmuir/swift,cbrentharris/swift,russbishop/swift,harlanhaskins/swift,kusl/swift,LeoShimonaka/swift,jckarter/swift,glessard/swift,adrfer/swift,stephentyrone/swift,stephentyrone/swift,gregomni/swift,russbishop/swift,milseman/swift,tinysun212/swift-windows,swiftix/swift,uasys/swift,swiftix/swift,tjw/swift,glessard/swift,ahoppen/swift,parkera/swift,sschiau/swift,khizkhiz/swift,manavgabhawala/swift,mightydeveloper/swift,austinzheng/swift,gregomni/swift,calebd/swift,frootloops/swift,tjw/swift,lorentey/swift,harlanhaskins/swift,nathawes/swift,kstaring/swift,zisko/swift,bitjammer/swift,LeoShimonaka/swift,kperryua/swift,milseman/swift,gottesmm/swift,tjw/swift,emilstahl/swift,gribozavr/swift,shajrawi/swift,kentya6/swift,hughbe/swift,mightydeveloper/swift,jtbandes/swift,mightydeveloper/swift,therealbnut/swift,parkera/swift,ahoppen/swift,kstaring/swift,bitjammer/swift,sschiau/swift,stephentyrone/swift,ben-ng/swift,IngmarStein/swift,Ivacker/swift,rudkx/swift,Jnosh/swift,Ivacker/swift,kentya6/swift,harlanhaskins/swift,devincoughlin/swift,tinysun212/swift-windows,ahoppen/swift,glessard/swift,kusl/swift,jtbandes/swift,OscarSwanros/swift,xedin/swift,johnno1962d/swift,huonw/swift,cbrentharris/swift,jopamer/swift,slavapestov/swift,alblue/swift,ahoppen/swift,MukeshKumarS/Swift,swiftix/swift,rudkx/swift,djwbrown/swift,gmilos/swift,natecook1000/swift,felix91gr/swift,allevato/swift,gregomni/swift,zisko/swift,brentdax/swift,LeoShimonaka/swift,hughbe/swift,dduan/swift,sschiau/swift,tkremenek/swift,kusl/swift,lorentey/swift,ben-ng/swift,adrfer/swift,jmgc/swift,allevato/swift,roambotics/swift,danielmartin/swift,gottesmm/swift,shahmishal/swift,hughbe/swift,danielmartin/swift,atrick/swift,CodaFi/swift,gottesmm/swift,jckarter/swift,hooman/swift,sdulal/swift,SwiftAndroid/swift,benlangmuir/swift,gregomni/swift,devincoughlin/swift,MukeshKumarS/Swift,russbishop/swift,JGiola/swift,huonw/swift,xedin/swift,sschiau/swift,benlangmuir/swift,parkera/swift,sschiau/swift,jmgc/swift,uasys/swift,gottesmm/swift,atrick/swift,aschwaighofer/swift,gregomni/swift,IngmarStein/swift,parkera/swift,gregomni/swift,LeoShimonaka/swift,ben-ng/swift,alblue/swift,benlangmuir/swift,glessard/swift,kstaring/swift,jopamer/swift,ken0nek/swift,russbishop/swift,ken0nek/swift,return/swift,cbrentharris/swift,natecook1000/swift,brentdax/swift,dreamsxin/swift,xwu/swift,stephentyrone/swift,zisko/swift,lorentey/swift,atrick/swift,therealbnut/swift,SwiftAndroid/swift,hughbe/swift,tardieu/swift,benlangmuir/swift,kentya6/swift,nathawes/swift,karwa/swift,amraboelela/swift,jmgc/swift,felix91gr/swift,practicalswift/swift,return/swift,shajrawi/swift,harlanhaskins/swift,amraboelela/swift,danielmartin/swift,OscarSwanros/swift,Jnosh/swift,felix91gr/swift,SwiftAndroid/swift,karwa/swift,jopamer/swift,huonw/swift,allevato/swift,modocache/swift,ken0nek/swift,Ivacker/swift,hughbe/swift,CodaFi/swift,ben-ng/swift,shahmishal/swift,codestergit/swift,adrfer/swift,emilstahl/swift,cbrentharris/swift,shajrawi/swift,codestergit/swift,return/swift,ben-ng/swift,xedin/swift,milseman/swift,huonw/swift,amraboelela/swift,jmgc/swift,tkremenek/swift,shahmishal/swift,kperryua/swift,KrishMunot/swift,roambotics/swift,kperryua/swift,JGiola/swift,johnno1962d/swift,natecook1000/swift,JaSpa/swift,huonw/swift,apple/swift,lorentey/swift,manavgabhawala/swift,xwu/swift,MukeshKumarS/Swift,devincoughlin/swift,alblue/swift,austinzheng/swift,jtbandes/swift,tkremenek/swift,KrishMunot/swift,alblue/swift,deyton/swift,kentya6/swift,SwiftAndroid/swift,tinysun212/swift-windows,gmilos/swift,slavapestov/swift,ahoppen/swift,uasys/swift,khizkhiz/swift,djwbrown/swift,lorentey/swift,tardieu/swift,CodaFi/swift,frootloops/swift,dduan/swift,calebd/swift,austinzheng/swift,gottesmm/swift,IngmarStein/swift,KrishMunot/swift,kusl/swift,shajrawi/swift,russbishop/swift,atrick/swift,russbishop/swift,modocache/swift,tinysun212/swift-windows,shahmishal/swift,xwu/swift,jtbandes/swift,danielmartin/swift,mightydeveloper/swift,aschwaighofer/swift,jckarter/swift,amraboelela/swift,tardieu/swift,austinzheng/swift,airspeedswift/swift,brentdax/swift,apple/swift,JGiola/swift,xwu/swift,apple/swift,OscarSwanros/swift,amraboelela/swift,jckarter/swift,OscarSwanros/swift,modocache/swift,gottesmm/swift,parkera/swift,harlanhaskins/swift,therealbnut/swift,JGiola/swift,brentdax/swift,johnno1962d/swift,milseman/swift,JaSpa/swift,practicalswift/swift,sschiau/swift,sdulal/swift,arvedviehweger/swift,stephentyrone/swift,bitjammer/swift,slavapestov/swift,Jnosh/swift,swiftix/swift.old,gmilos/swift,Jnosh/swift,brentdax/swift,sdulal/swift,mightydeveloper/swift,airspeedswift/swift,Jnosh/swift,rudkx/swift,tkremenek/swift,Ivacker/swift,milseman/swift,emilstahl/swift,IngmarStein/swift,sschiau/swift,SwiftAndroid/swift,lorentey/swift,tardieu/swift,brentdax/swift,IngmarStein/swift,slavapestov/swift,jopamer/swift,xwu/swift,ken0nek/swift,swiftix/swift,ahoppen/swift,gribozavr/swift,jckarter/swift,devincoughlin/swift,jopamer/swift,milseman/swift,calebd/swift,harlanhaskins/swift,kstaring/swift,tinysun212/swift-windows,slavapestov/swift,khizkhiz/swift,stephentyrone/swift,MukeshKumarS/Swift,shajrawi/swift,sdulal/swift,shajrawi/swift,KrishMunot/swift,airspeedswift/swift,emilstahl/swift,cbrentharris/swift,adrfer/swift,rudkx/swift,MukeshKumarS/Swift,johnno1962d/swift,devincoughlin/swift,kusl/swift,emilstahl/swift,deyton/swift,manavgabhawala/swift,gribozavr/swift,uasys/swift,parkera/swift,aschwaighofer/swift,felix91gr/swift,xedin/swift,xedin/swift,CodaFi/swift,modocache/swift,djwbrown/swift,huonw/swift,mightydeveloper/swift,amraboelela/swift,codestergit/swift,hooman/swift,kstaring/swift,khizkhiz/swift,aschwaighofer/swift,xedin/swift,emilstahl/swift,adrfer/swift,arvedviehweger/swift,djwbrown/swift,nathawes/swift,zisko/swift,hughbe/swift,Ivacker/swift,karwa/swift,ben-ng/swift,ken0nek/swift,CodaFi/swift,roambotics/swift,rudkx/swift,Jnosh/swift,swiftix/swift.old,tinysun212/swift-windows,jmgc/swift,harlanhaskins/swift,sdulal/swift,gmilos/swift,manavgabhawala/swift,gribozavr/swift,frootloops/swift,natecook1000/swift,dduan/swift,natecook1000/swift,dduan/swift,jmgc/swift,danielmartin/swift,kusl/swift,shahmishal/swift,swiftix/swift,hooman/swift,tkremenek/swift,manavgabhawala/swift,JaSpa/swift,therealbnut/swift,bitjammer/swift,codestergit/swift,KrishMunot/swift,bitjammer/swift,khizkhiz/swift,jckarter/swift,roambotics/swift,KrishMunot/swift,jckarter/swift,frootloops/swift,shahmishal/swift,codestergit/swift,russbishop/swift,deyton/swift,johnno1962d/swift,slavapestov/swift,glessard/swift,deyton/swift,OscarSwanros/swift,practicalswift/swift,modocache/swift,frootloops/swift,LeoShimonaka/swift,kentya6/swift,SwiftAndroid/swift,gmilos/swift,johnno1962d/swift,airspeedswift/swift,parkera/swift,ken0nek/swift,LeoShimonaka/swift,devincoughlin/swift,mightydeveloper/swift,dduan/swift,OscarSwanros/swift,alblue/swift,tardieu/swift,austinzheng/swift,amraboelela/swift,tardieu/swift,lorentey/swift,nathawes/swift,xedin/swift,benlangmuir/swift,aschwaighofer/swift,Jnosh/swift,zisko/swift,return/swift,emilstahl/swift,arvedviehweger/swift,tardieu/swift,LeoShimonaka/swift,dduan/swift,austinzheng/swift,return/swift,codestergit/swift,austinzheng/swift,arvedviehweger/swift,aschwaighofer/swift,xedin/swift,emilstahl/swift,felix91gr/swift,modocache/swift,hooman/swift,ben-ng/swift,therealbnut/swift,therealbnut/swift,deyton/swift,stephentyrone/swift,therealbnut/swift,hooman/swift,lorentey/swift,apple/swift,practicalswift/swift,JaSpa/swift,arvedviehweger/swift,khizkhiz/swift,kperryua/swift,codestergit/swift,swiftix/swift.old,practicalswift/swift,hooman/swift,kusl/swift,swiftix/swift.old,tinysun212/swift-windows,kusl/swift,cbrentharris/swift,CodaFi/swift,CodaFi/swift,calebd/swift,rudkx/swift,bitjammer/swift,sschiau/swift,IngmarStein/swift,ken0nek/swift,IngmarStein/swift,deyton/swift,alblue/swift,mightydeveloper/swift,tjw/swift,shahmishal/swift,devincoughlin/swift,uasys/swift,deyton/swift,apple/swift,gribozavr/swift,JaSpa/swift,arvedviehweger/swift,tjw/swift,swiftix/swift.old,airspeedswift/swift,atrick/swift,KrishMunot/swift,glessard/swift,kentya6/swift,tkremenek/swift,JGiola/swift,airspeedswift/swift,kentya6/swift,OscarSwanros/swift,natecook1000/swift,arvedviehweger/swift,brentdax/swift,nathawes/swift,Ivacker/swift,allevato/swift,gribozavr/swift,karwa/swift,xwu/swift,felix91gr/swift,kstaring/swift,roambotics/swift,djwbrown/swift,hooman/swift,practicalswift/swift,alblue/swift,felix91gr/swift,airspeedswift/swift,milseman/swift,jtbandes/swift,practicalswift/swift,atrick/swift,shajrawi/swift,gribozavr/swift,Ivacker/swift,return/swift,frootloops/swift,parkera/swift,tkremenek/swift,allevato/swift,nathawes/swift,shahmishal/swift,bitjammer/swift,karwa/swift,djwbrown/swift,hughbe/swift,swiftix/swift.old,uasys/swift,calebd/swift,gmilos/swift,MukeshKumarS/Swift,kperryua/swift,practicalswift/swift,zisko/swift,slavapestov/swift,huonw/swift,SwiftAndroid/swift,uasys/swift,JaSpa/swift,apple/swift,devincoughlin/swift,xwu/swift,shajrawi/swift,dduan/swift,allevato/swift,JGiola/swift,gribozavr/swift,karwa/swift,frootloops/swift,danielmartin/swift,johnno1962d/swift,sdulal/swift,kperryua/swift,swiftix/swift,gottesmm/swift,jopamer/swift,aschwaighofer/swift