A somewhat type-agnostic QuickSelect implementation