resized sparse matrices in constructor