implemented PBIL running in many threads