Implemented distanceTo method for Location class