Algorithm no longer uses row number