Nasdaq heads for best quarter since 2020