Spherical distance functions are now NumPy optimized

The spherical distances functions are now NumPy dependent. They no
longer depend on Python's math library.