compress a list of integers. sparse matrix with yale format

compress a list of integers. sparse matrix with yale format