setNbThreads function

Parallel computations in fits