Added convenience method to calculate expressions of the form g_0^e_0
... g_n^e_n in a given group