a program to calculate the value of PI