Quick select - an O(logn) algorithm (in expected time) for quickly
finding order statistics. Doesn't even require a sorted array!