adding example calculations for the first figure, the sparse matrix