Calculate PI using two different methods