Implemented global coordinate computing function
Implemented Math module and distance() function