Reorganizing the data