Fixing a few problems and adding a version of Newtons method that returns the number of iterations.
Adding a method to handle Richardson's method.