Got quickselect working