Apple buys an A.I. start-up that came from Microsoft co-founder Paul Allen’s research lab