split mesolve into modules: mesolve and sesolve for density matrix solver and wave-function solvers, respectively