find continued fraction of square root