pbc: multiple dispatch with float64 vector
dist and dist2: added