Walmart’s focus on technology to drive sales helps lift its stock into record territory.