Optimization bug kdtree.jl lines: 99 & 120