storing linear index in cell_neis.