Use ptherad to acclerate Monte Carlo method calculationg pi