Wall Street kicks off October with gains, boosted by economic optimism