numlber of threads is now a parameter of mp.mp and mp.greedy functions