update matlab pool function

- matlabpool gets deprecation warning
explicitly coerce str to int
add slurm script for ex5
add shebang to pbs