I.B.M. announced on Tuesday that it had agreed to buy SoftLayer Technologies, a cloud computing company, in an effort to strengthen I.B.M.’s position in the fast-growing market for computing sold to businesses as a service delivered over the Internet. As