Quick implementation for the periodic boundary conditions.
Introduced stress tensor.