update system.hpp

calc. min. distances with pbc