Find top k minimum elements using selection algorithm