The continued rise of e-commerce and increased optimization of supply chains is affecting everything from distribution centers to store layouts.