CartToPol function

Transform Cartesian to Polar/Spherical Coordinates and Vice Versa