STY _stats:  move stat functions from testnd -> stats
TEST stats
FIX stats.corr