wrote out mapping of row/col to sequential IDs