Pow() function and converting double to byte/int

Well, it look obvious now that the array method is the faster

By the way 2^0=1 not 0