improved stat.factory, implementing matrix statistics
improved stat.factory, implementing matrix statistics