Stock market rebounds; Elon Musk buys Twitter