A Variant of the Continued Fraction Expansion Algorithm. (2015)