 HMS Holdings Corp. announced Monday an agreement to be acquired by Gainwell Technologies, which is backed by Veritas Capital, in a deal valuing the health care services company at about 3.4 billion. HMSs stock was inactive in the premarket before a trading halt for news. 