added parallel pi computation