Modified code to generate lineups varying N, K, sd.data, sd.group.