Add deterministic selection with same asymptotic complexity