Implementation of peridynamics.