Convert to using hmatrix. 40% speedup in rosenbrock benchmark