serial calculation of pi