Btrace kdtree script, #315