Made kdtrees not suck