Change implementation to in-place quickselect, remove other algorithms