sparse factorization codes