Adding factor function to mathLib and documentation. THIS CODE HAS NOT BEEN TESTED.
Adding code in problem 3 to use factor code in mathLib. THIS CODE HAS NOT BEEN TESTED.