Dow, S&P 500 close at 5-year highs