MAINT: spatial: static, unused code, sqrt(sqeuclidean)

Made the distance function kernels static.
No need to pollute the global linker namespace with these.