added parallel pi computing code