Changed stats.cor and stats.cov to receive only one matrix