Wall Street gains as election hangs in balance