allow num_cores to specify a specific number of cores
allow num_cores to specify a specific number of cores

addresses #121

chendaniely/multi-agent-neural-network,chendaniely/multi-agent-neural-network