Data source: http://rosettacode.org/wiki/Convert_decimal_number_to_rational
