Fix chebfun inv

Add support for piecewise smooth functions and add some more root-finding methods.

In the long run, we probably don't want to keep all of these methods, but it's good to have them for now so that we can experiment to see which is best. (Presumably Brent's, but I don't know.)