Made calculation of mlg.matrix much much faster.
added todo in mlg.table