QuickSelect algorithm on mutable vectors