add periodic boundary conditions. fixes #1

- add PBC distance function
- add PBC collision check