Reorganizing data structures