update to mmlabpack for diagonal matrices