Optimizing retail store operations