correct nbody with shared mem