Erik. Periodic boundaries implemented. For now without rotations.

1) gengrid2D updated accordingly
2) fixed critical bug in gengrid2D
3) added new class to configuration
4) periodic boundaries tested sequential and parallel