Sparse matrix manipulation

Thanks,