S&P 500 had its best year since 2013 thanks in part to Federal Reserve rate cuts.