Function advances a vector according to the glex sequence.
Author:
Rochan R. Upadhyay
Given a vector of integers this routine returns the next vector according to the Graded Lexicographic Ordering (glex). This routine is specifically used to create a valid moment sequence.