Added pairwise correlation and RMSP functions