improved flattendata
improved cov speed
Merge ../pybasicbayes/util