attempt at a parallel version.  won't compile using mpiCC