fixed negative rational numbers comparison (denominator is now always positive)
Merge branch 'master' into beta