tested and refactored subtract_min_sans_zero_from_rows_to_add_assignments