Use of Factorization in Quantum Computing