points list to sparse matrix