Optimizing Data Placement for Reducing Shift Operations on Domain Wall Memories