Right To Left method
Modular Exponentiation( O(log N))