HP to Purchase Parts of AI Firm for $116 Million