SICP 1.37 - 1.39: Continued Fractions