Improved magnum#Pow algorithm

Fixes #1.
Merge branch 'improve_pow' into develop
Renamed internal function