Use sparse matrix