Billionaire Robert Smith’s firm sells software maker for $4.6 billion, doubling its initial investment