Non-recursive implementation pow

Calculate the pow of base, use the Non-recursive implementation.
0 and 1 is ok.