O(ln N) solution to calculate Nth power of a number.
Merge branch 'master' of https://github.com/glassrose/SPOJ