Computation of the n'th decimal digit of \pi, modified from http://bellard.org/pi/pi.c