Quick selection can find the K-th largest element in array.