Saving matrices after each power_of_two