Added code to test out running processes in parallel with perl (dynamic scheduling in OMP)
removed unnecessary thread array