Update FactorizingSecondDegreeEquations.js

optimize performance.