Made sparse matrix handle converting itself