k-largest selection
3-way partition