Make several methods static
Implement sliding window modular exponentiation