這個文章很棒
http://www.voidcn.com/article/p-eesknkhh-tm.html
https://www.rookieslab.com/posts/fast-power-algorithm-exponentiation-by-squaring-cpp-python-implementation#efficient-c-implementation-to-find-exponent-raised-to-a-power