Factorization algorithms.