quickselect...sorta