Simplify fractions