ordering_gen_exp function

Generates the names of n variables.