got row reduction, still need another helper function