POW(x,y) not working, when using array