Merging two classes of kth largest in one class