Compute continued fraction expansion of pi.