Software stocks surge 21% in May as AI catalysts revive sector