Fixed bug in pbc_all_distances for starting points outside of unit cell