Introduce possibility to choose between multicore and singlecore calculation, single is important for Windows since multiprocessing is not working yet under windows