add sparsity plot for HW4