Adding and subtracting algebraic fractions