Fixing kDtree implementation, perfect splits and stuff
sse stuff