Modified the spherical distances with NumPy

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