Computes base to the exp'th power for Ints by repeated squaring.
Computes base to the exp'th power for Longs by repeated squaring.