COMPLEXITY IN THE STEPWISE IDEAL GAS CARNOT CYCLE