Fix but in sqrtm

sp_eigs now return a 2d ndarray instead of a list of 1d ndarray. Fix sqrtm accordingly, and adding a unit test for it.