Hedge funds beefed up A.I. bets in the second quarter