Numba parts are working, parallel distance function is still broken.