S&P 500, Nasdaq edge up as vaccine update feeds optimism