Randomized kd-tree by JKi