setParallel function

Disable or enable parallelised computing