cut out qselect from qsort hw