Calculate Power of an Integer