Added intersection to newton method. It is not clear what the condition should be for when a root is known to be found. Refine was supposed to use the fact that the sequence of intervals is supposed to be nested