Improved efficiency of factorize function.
Problem 23.
Problem 24.