Update rearrange.s