vectorized calcPow2
blocked pthread for calcPow2
tested and verified