tuning: pvalues2matrix is now 100 times faster