Distance for many points