added distanceTo method to Point