Added NumCores method to Slurm