Parallel Pearson's correlation. It either takes a 2D array as input and
correlates each row with every other row or takes two 2D arrays and correlates
the columns of the first matrix with the columns of the second matrix. The
output can either be the matrix of correlation coefficient or the distance
matrix.