[MF] speed up dramatically with sparse matrix