Algorithm 2

implemented second sumPower_IWF algorithme