simplify fractions and sorting array of fractions tasks