Add constructor option to change num processes
Use itertools when numProcesses=1