checkParallelArguments: Helper function to check the that the parallel arguments are valid
Description
Helper function to check the that the parallel arguments are valid
Usage
checkParallelArguments(parallel, num.cores)
Arguments
parallel
A logic to indicate if parallel processing should be used
num.cores
An integer for the number of threads to use