Add ad for matrices.
Added tests for matrix solve.
First integrator.

* Todo : more simple example : pendulum.