Matrix factorization toolbox