made a function like numpy.linalg.norm for sparse matrix