Small Java class for calculating the distance between two points.