Updated dict so that it only enters rationals in form num > den

After the discussion on PR it was decided to follow the convention
of inserting rational items in the dict in form num > den.
So this avoids a find later on, which were causing the benchmarks
to degrade.