A market approach to Collaborative Artificial Intelligence that preserves privacy