added kdtree code to do jacknife calc, some tests dont work