Dist function in Point3D (Euclidian distance)