Rearrange data for data-oriented design