find the generic initial ideal of a given ideal