Added topK selection method based on quick select algorithm