added cythonized fast spheredist function