update pi-parallel-algorithm