Performance Improvements
Performance Improvements

I memoized the canonicalize function, and cursory tests show it to have
greatly enhanced performance. I was a little worried that simplification
was too much of a bottlneck before, so this is good.

jackfirth/herbie,jackfirth/herbie,jackfirth/herbie,jackfirth/herbie,jackfirth/herbie,jackfirth/herbie