Power Algorithm Simulation