Generates continued fraction of irrational square roots.  See http://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Continued_fraction_expansion.