Reworked sorting and selection routines to tidy implementation.  Added multiple quickselect.