Randomized KD tree