Data source: http://rosettacode.org/wiki/Continued_fraction/Arithmetic/Construct_from_rational_number
