Modified linearly_indep_tuples.
Modified linearly_indep_rows_index_list.