Added two methods to convert between cartesian and GPS coordinates.