added support for expm for using dense linear solver

Defaulting to using dense solver for small/dense problems and the sparse solver only for large and sparse problems. In my tests the dense solver is actually quite a bit faster up to pretty large system (several hundreds of quantum states at least).