use spmatrix constructor to take transpose