Made mypow use a global lookup table