refactor factorfinder object, separate concerns of findFactors method and findLargestFactor method