AI lab DeepMind becomes profitable and bolsters relationship with Google