Ode's as a adiagnoal sparse matrix