Feature/redesign writeback struct v3

The branch redesigns the writeback structure by defining new struct `segment_migrate`.