Add method to predict instances in parallel.