Refactoring.
Added a test for linearly_indep_rows_index_list.