Added function correl() (Pearson correlation coefficient) and modified onData() so it accepts more than one data argument.