Regret script had --SW GLOBAL option
memory management in learn_AGGs