Preliminary version of getPvalMatrix