#11 Improved the getDistance function
#11 Tested and improved xToLongitude