Added the parfor to the two correlation calculations