Add fast exponentiation algorithm (repeated squaring)
Update main.js
Merge pull request #64 from eush77/fast-power

Add fast exponentiation algorithm (repeated squaring)