Relational operations for the fraction class