Wal-Mart Posts Modest 3Q Profit Gain