All three of Wall Street's main indexes are headed towards double-digit annual gains, bolstered partly by enthusiasm surrounding artificial intelligence.