Generating subsets of order statistics with applications to trimmed means and means of trimmings