Equivalent to the c pow function (computes x^y)