Move factorization sum function to a helper c class that we can use in all problems.

Problem 23: Non-abundant sums
Problem 24: Lexographic Permutations - Analytical Solution