Stable AE + WB algorithm