make Boxed Correlation
Returns a boxed correlation function for the given method token.
Return
function taking two Array<Double> and returning the correlation
Parameters
method
correlation method (Constants.CORRELATION_PEARSON, Constants.CORRELATION_KENDALL)