Changes to quickselect backend