optimize raising to the power
WIP.