Fast Power Algorithm (Power by Squaring)