Integration of Rational Functions