[GiNaC-devel] [PATCH] gcd: fix heuristics to chose main variable properly