Dow slams milestone 40,000 after Walmart announced blockbuster profits