CLN: Remove redundant rebuilding of KDTree from link_iter()
PERF: prediction functions are now vectorized.