Shares of Dollar Tree rose sharply Wednesday after the discount retailer released an upbeat earnings outlook for the next three years.