read sparse matrix dump one line at a time