Added pbc_all_distances to calculate all cartesian distances between lists of
coordinates