removed hacky isnan check within distances in balltree