Now separates into much smaller intervals. Added Newton method