Small optimization for special case of pow
Added DEBUG flag

To make debugging easier