Quickselect, cleanup.