Check in draft code: Efficient Power Function