A&P optimizes merchandising strategy