Add function to compute the nth decimal place of pi