Added the parallel version of correlation.