work on quickselect