pow array initialization refactored.