Added check on number of cores in function ipsen.list() in file netdist2.R